#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time    : 2025/3/31 15:11
@Author  : HZP
@File    : app_schema.py
"""

from flask_wtf import FlaskForm
from wtforms import StringField
from wtforms.validators import DataRequired
from wtforms.validators import Length


class CompletionReq(FlaskForm):
    query = StringField('query', validators=[
        DataRequired(message="必填项"),
        Length(min=1, max=100, message="长度在1-100之间")
    ])
